<?php 
//Used as a wrapper of a nested laytou
// see: http://www.developly.com/creating-3-step-layouts-with-zendlayout
//echo $this->doctype()."\n"; 
?> 
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <? /* <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> */ ?>
  <?php $this->headMeta()->appendHttpEquiv('X-UA-Compatible','IE=edge,chrome=1'); ?>

  <?php $this->headTitle()->setSeparator(' - ')->append("Nodo Inmobiliario"); ?> 
  <?php echo $this->headTitle("Home"); ?> 

  <?php $this->headMeta()->appendName("author","Cristian Cortez"); ?> 
  <?php $this->headMeta()->appendName("viewport","width=device-width,initial-scale=1"); ?> 
  <?php echo $this->headMeta(); ?>

  <?php $this->headLink()->appendStylesheet("http://fonts.googleapis.com/css?family=Ubuntu+Condensed"); ?> 
  <?php $this->headLink()->appendStylesheet($this->baseUrl("/css/style.css")); ?> 
  <?php $this->headLink()->appendStylesheet("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css"); ?> 
  <?php echo $this->headLink(); ?> 

  <?php ///echo $this->headStyle(); ?>

  
  <?php $this->headScript()->appendFile($this->baseUrl("/js/libs/modernizr-2.0.6.min.js")); ?>
  <?php echo $this->headScript(); ?>

  <? /* <title>Nodo Inmobiliario</title> */ ?>
  <? /* <meta name="description" content=""> */ ?>
  <? /* <meta name="author" content=""> */ ?>

  <? /* <meta name="viewport" content="width=device-width,initial-scale=1"> */ ?>

  <? /* <!-- Google Font--> */ ?>
  <? /* <link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css'> */ ?>
  <? /*  <!-- CSS concatenated and minified via ant build script--> */ ?>
  <? /* <link rel="stylesheet" href="css/style.css"> */ ?>
  <? /*  <!--  <link type="text/css" rel="stylesheet" href="http://www.erichynds.com/examples/style.css" /> --> */ ?>
  <? /*  <link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/redmond/jquery-ui.css" /> */ ?>
  <? /* <!-- end CSS--> */ ?>

  <? /* <script src="js/libs/modernizr-2.0.6.min.js"></script> */ ?>
</head>

<body> 
  <div id="container">
    <header class="main-hdr">
        <h1>Nodo Inmobiliario</h1>
        <div class="con-notifier">
			<?php
			if (count($this->messages) > 0) {
				printf("<div class='mod-notifier'>%s</div>", $this->messages[0]);
			}
			?>
			<!-- <div class='mod-notifier'>
				<span class="title">Titulo</span>
				<span class="desc">Descripcion</span>
				<span class="exp">8</span>
			</div>
			<div class='mod-notifier'>
				<span class="title">Titulo</span>
				<span class="desc">Descripcion</span>
				<span class="exp">40</span>
			</div> -->
		</div>
        <div class="con-hdr">
            <a class="mod-logo" href="http://nodoinmobiliario.com.ar/" alt="Nodo Inmobiliario">
                <img alt="Nodo Inmobiliario"  src="<?= $this->baseUrl("/img/mod-logo-fpo.png"); ?>" />
                <span>Nodo Inmobiliario</span>
            </a>
            <?php
				$auth = Zend_Auth::getInstance();
				
				if ($auth->hasIdentity()) {
					$identity = $auth->getIdentity();
					if (isset($identity)) {
						printf('<div class="mod-login"><p class="user">Bienvenido, <em>%s</em> &middot; <a href="/account/logout">Logout</a></p></div>', $identity);
					}
				}else{
					echo '<div class="mod-login"><p><a class="simplemodal" href="#mod-modal-content">Login | Register</a></p></div>';
				}					
			?>
            <!-- modal content --> 
            <div id="mod-modal-content"> 
                <div id="mod-modal-title">Bienvenidos al Nodo Inmobiliario</div> 
                <div class="close"><a href="#" class="simplemodal-close">x</a></div> 
                <div id="mod-modal-data"> 
                    <!-- <p><button class="simplemodal-close">Close</button> <span>(or press ESC or click the overlay)</span></p> --> 
                    <ul class="tabs">
                      <li class="active"><a href="#login">Ingresar</a></li>
                      <li><a href="#register">Registrarse</a></li>
                      <li><a href="#profile">Profile</a></li>
                      <li><a href="#settings">Settings</a></li>
                    </ul>
                     
                    <div class="pill-content">
                      <div class="active" id="login">
                        <?  
                            if (!$auth->hasIdentity()) {
                                echo $this->form;
                            }					
                        ?>
                      </div>
                      <div id="register">Registrarse</div>
                      <div id="profile">Perfil</div>
                      <div id="settings">Settings</div>
                    </div>
                </div> 
            </div> 
            <!-- modal content end --> 
            <?
            /*
            <form action="/account/login" class="mod-login">
                <input type="text" placeholder="Usuario" id="usr" />
                <input type="password" placeholder="Password" id="pwd">
                <button class="btn" type="button">Sign in</button>
            </form>
            */
            ?>
        </div>
    </header>
    <div id="main" class="main-wrap" role="main">
        <div class="con-neck">
            <ul class="mod-search">
                <li class="mod-search-border-left"></li>
                <li class="mod-search-border-center">
                    <?= $this->navigation()->menu(); ?>
                </li>
                <li class="mod-search-border-right"></li>       
            </ul>
        </div>

    <?php /* NESTED LAYOUT SUPPORT */ ?> 
    <?php if($this->layout()->nestedLayout): ?>  
        <?php $this->layout()->setLayout($this->layout()->nestedLayout); ?> 
    <?php else: ?> 
        <?php $this->layout()->setLayout('default'); ?> 
    <?php endif;?> 
    <?php echo $this->layout()->render();  ?> 

    </div>
     <div class="main-ftr">
        Social links
    </div>
    <footer class="main-firm">
            Firm
    </footer>
  </div> <!--! end of #container -->
  
	<!--- container to hold notifications, and default templates --->
	<div class="mod-notifier-container">
		
		<div id="default">
			<h2>#{title}</h2>
			<p>#{text}</p>
		</div>
		
		<div id="sticky">
			<a class="ui-notify-close ui-notify-cross" href="#">x</a>
			<h2>#{title}</h2>
			<p>#{text}</p>
		</div>
		
		<div id="themeroller" class="ui-state-error" style="padding:10px; -moz-box-shadow:0 0 6px #980000; -webkit-box-shadow:0 0 6px #980000; box-shadow:0 0 6px #980000;">
			<a class="ui-notify-close" href="#"><span class="ui-icon ui-icon-close" style="float:right"></span></a>
			<span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
			<h2>#{title}</h2>
			<p>#{text}</p>
			<p style="text-align:center"><a class="ui-notify-close" href="#">Close Me</a></p>
		</div>
		
		<div id="withIcon">
			<a class="ui-notify-close ui-notify-cross" href="#">x</a>
			<div style="float:left;margin:0 10px 0 0"><!-- <img src="#{icon}" alt="warning" /> --></div>
			<h2>#{title}</h2>
			<p>#{text}</p>
		</div>
		
		<div id="buttons">
			<h2>#{title}</h2>
			<p>#{text}</p>
			<p style="margin-top:10px;text-align:center">
				<input type="button" class="confirm" value="Close Dialog" />
			</p>
		</div>
	</div>


  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')</script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.js" type="text/javascript"></script>
  <script type="text/javascript" src="<?php echo $this->baseUrl('js/libs/openid-jquery.js'); ?>"></script>
  <script type="text/javascript" src="<?php echo $this->baseUrl('js/libs/openid-en.js'); ?>"></script>

  <!-- scripts concatenated and minified via ant build script-->
  <script defer src="<?php echo $this->baseUrl('js/nodoin.global.js'); ?>"></script>
 
  <!-- 
  <script defer src="js/plugins.js"></script>
  <script defer src="js/script.js"></script>
  -->
  <!-- end scripts-->


  <script> // Change UA-XXXXX-X to be your site's ID
    window._gaq = [['_setAccount','UA-28840484-1'],['_trackPageview'],['_trackPageLoadTime']];
    Modernizr.load({
      load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
    });
  </script>


  <!--[if lt IE 7 ]>
    <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
    <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  <![endif]-->
    <?php /* OUTPUT JAVASCRIPT */ ?> 
    <?php ///echo $this->headScript(); ?> 
    <?php ///echo $this->inlineScript(); ?> 
</body> 
</html>
